package com.briup.sm4;

import com.justinmobile.core.hibernate_support.util.DataEncryptUtil;
import org.junit.jupiter.api.Test;

public class SM4Test {

    @Test
    public void encrypt(){
        String encryptStr = "";
        String decryptStr = "";
        String encryptSm4Cbc = DataEncryptUtil.encryptSm4Cbc(encryptStr);
        System.out.println(encryptSm4Cbc);
        String decryptSm4Cbc = DataEncryptUtil.decryptSm4Cbc(decryptStr);
        System.out.println(decryptSm4Cbc);
    }

    @Test
    public void decrypt(){
        int appMark = 0;
        System.out.println(appMark);
        appMark  = appMark | 2;
        System.out.println(appMark);
        appMark  = appMark | 1;
        System.out.println(appMark);
    }

}
